package dk.au.cs.peterbn.processing;

import javax.lang.model.element.AnnotationMirror;
import java.lang.annotation.Annotation;

/**
 * My own, always-on assertion framework.
 *
 * This class is meant for static import
 *
 * @author pebn
 */
public class Checks {

    public static void assertAnnotationType(AnnotationMirror annotation, Class<? extends Annotation> clazz) {
        assert annotation.getAnnotationType().toString().equals(clazz.getCanonicalName()) : "argument annotation does not represent " + clazz.toString();
    }

}
